#include "s-int.h"


INT_PTR CALLBACK DialogProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
	switch(uMsg)
	{
	case WM_INITDIALOG:
		{
			Window::SetIcon(hDlg, IDI_APP);
			InitialWindow(hDlg);
		}
		break;
	case WM_COMMAND: 
		switch (LOWORD(wParam)) 
		{ 
		case IDC_BUTTON_HOMEPAGE:
			{
				OnHomePageBtnClick(hDlg);
			}
			break;
		case IDC_BUTTON_LAUNCH: 
			{
				OnLaunchGameBtnClick(hDlg);
			}
			break;
		} 
		break;
	case WM_CLOSE:
		{
			EndDialog(hDlg, wParam); 
		}
		break;
	}
	return FALSE;
}